package opt.power.springdemo.user.mapper.model;

import lombok.Data;

/**
 * @author xuliduo
 * @date 2017/11/16
 * @description class User
 */
@Data
public class User {

    /**
     * for gson
     */
    public User() {
    }

    public User(long id, String name, String password) {
        this.id = id;
        this.name = name;
        this.password = password;
    }

    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }

    /**
     * id
     */
    private long id;

    /**
     * user name
     */
    private String name;

    /**
     * user password
     */
    private String password;

    /**
     * 当前登录 token
     */
    private String token;
}
